Optimal. Leaf size=46 \[ \frac{b^3}{a^4 (a x+b)}+\frac{3 b^2 \log (a x+b)}{a^4}-\frac{2 b x}{a^3}+\frac{x^2}{2 a^2} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0736175, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 11, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182 \[ \frac{b^3}{a^4 (a x+b)}+\frac{3 b^2 \log (a x+b)}{a^4}-\frac{2 b x}{a^3}+\frac{x^2}{2 a^2} \]
Antiderivative was successfully verified.
[In] Int[x/(a + b/x)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{\int x\, dx}{a^{2}} - \frac{2 b x}{a^{3}} + \frac{b^{3}}{a^{4} \left (a x + b\right )} + \frac{3 b^{2} \log{\left (a x + b \right )}}{a^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x/(a+b/x)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0261896, size = 43, normalized size = 0.93 \[ \frac{a^2 x^2+\frac{2 b^3}{a x+b}+6 b^2 \log (a x+b)-4 a b x}{2 a^4} \]
Antiderivative was successfully verified.
[In] Integrate[x/(a + b/x)^2,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.01, size = 45, normalized size = 1. \[ -2\,{\frac{bx}{{a}^{3}}}+{\frac{{x}^{2}}{2\,{a}^{2}}}+{\frac{{b}^{3}}{{a}^{4} \left ( ax+b \right ) }}+3\,{\frac{{b}^{2}\ln \left ( ax+b \right ) }{{a}^{4}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x/(a+b/x)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.43855, size = 63, normalized size = 1.37 \[ \frac{b^{3}}{a^{5} x + a^{4} b} + \frac{3 \, b^{2} \log \left (a x + b\right )}{a^{4}} + \frac{a x^{2} - 4 \, b x}{2 \, a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(a + b/x)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.220106, size = 84, normalized size = 1.83 \[ \frac{a^{3} x^{3} - 3 \, a^{2} b x^{2} - 4 \, a b^{2} x + 2 \, b^{3} + 6 \,{\left (a b^{2} x + b^{3}\right )} \log \left (a x + b\right )}{2 \,{\left (a^{5} x + a^{4} b\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(a + b/x)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.35851, size = 44, normalized size = 0.96 \[ \frac{b^{3}}{a^{5} x + a^{4} b} + \frac{x^{2}}{2 a^{2}} - \frac{2 b x}{a^{3}} + \frac{3 b^{2} \log{\left (a x + b \right )}}{a^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(a+b/x)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.226049, size = 65, normalized size = 1.41 \[ \frac{3 \, b^{2}{\rm ln}\left ({\left | a x + b \right |}\right )}{a^{4}} + \frac{b^{3}}{{\left (a x + b\right )} a^{4}} + \frac{a^{2} x^{2} - 4 \, a b x}{2 \, a^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x/(a + b/x)^2,x, algorithm="giac")
[Out]